#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<ctype.h>

int main() {
    char a, b;
    scanf("%c", &a);
    a = tolower(a);
    if (a == 's' || a == 't') {
        scanf(" %c", &b);
        b = tolower(b);
    }

    switch (a) {
    case 'm':
        printf("monday\n");
        break;
    case 't':
        if (b == 'u') {
            printf("tuesday\n");
        }
        else if (b == 'h') {
            printf("thursday\n");
        }
        break;
    case 'w':
        printf("wednesday\n");
        break;
    case 'f':
        printf("friday\n");
        break;
    case 's':
        if (b == 'a') {
            printf("saturday\n");
        }
        else if (b == 'u') {
            printf("sunday\n");
        }
        break;
    default:
        break;
    }
    return 0;
}